package com.example.eureka.server.eureka_demo;

import org.apache.commons.lang.time.DateUtils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;

public class test {
    public static Map<String,Object> map = new HashMap<>();
    static{
        map.put("111","12314");
        map.put("222","2222314");
        map.put("333","33332314");
    }


    public static void main(String[] args) {

        for(int i = 0 ; i <1000;i++) {
            new Thread(new Runnable() {
                @Override
                public void run() {
                    for(int b =0;b<1000;b++) {
//                        System.out.println(map.put("111",Double.parseDouble((String)map.get("111"))+""));
                        for(String key : map.keySet()){
                            if(key.equals("222")){
                                System.out.println(map.get(key));
                            }
                        }
//                        System.out.println(map.get("111"));
                    }
                }

            }).start();

        }

    }

}
